Skip to content

Quota UI rework#13449

Draft
winterhazel wants to merge 2 commits into
apache:mainfrom
scclouds:quota-ui
Draft

Quota UI rework#13449
winterhazel wants to merge 2 commits into
apache:mainfrom
scclouds:quota-ui

Conversation

@winterhazel

Copy link
Copy Markdown
Member

Description

This PR is a rework of the Quota UI intended to expose the new functionality added in #9590, #10505, #10506, #12961, and #13236, as well as provide a better visualization of the Quota-related statistics.

With these changes, it is now possible to:

  • Visualize the Quota consumption of Accounts/Projects throughout multiple periods of time.
  • See which resources are responsible for the Quota consumption, and which tariffs were applied.
  • Visualize how the balance of an Account/Project changed throughout multiple periods of time.
  • Visualize the credits addition history of Accounts/Projects.

Additionally, some changes were made in quotaCredits and quotaCreditsList to allow adding credits to and obtaining the credits addition history for Projects, which has also been exposed in the UI. A new field was also added to the response of quotaStatement to allow seeing the consumption history as a line chart.

This is still marked as a draft because I want to do some minor refactoring in QuotaUsageTab.vue. Other files should not be changed.

Closes #11805.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Screenshots (if appropriate):

Screenshot from 2026-06-18 10-05-38 Screenshot from 2026-06-18 10-05-43 Screenshot from 2026-06-18 10-05-54 Screenshot from 2026-06-18 10-06-00 Screenshot from 2026-06-18 10-06-09
2026-06-18.10-02-25.mp4

How Has This Been Tested?

I manually tested these changes by accessing the summary (consumption, balance, and credits), tariff, and email template pages for admin, domain admin, users, and projects (when applicable) and validating that the expected contents were shown. The credits addition and listing was also tested.

@github-actions

Copy link
Copy Markdown

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

@codecov

codecov Bot commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (2fd83e1) to head (19e60ab).
⚠️ Report is 14 commits behind head on main.

Additional details and impacted files
@@              Coverage Diff              @@
##               main   #13449       +/-   ##
=============================================
- Coverage     18.77%        0   -18.78%     
=============================================
  Files          6163        0     -6163     
  Lines        552779        0   -552779     
  Branches      67365        0    -67365     
=============================================
- Hits         103780        0   -103780     
+ Misses       437587        0   -437587     
+ Partials      11412        0    -11412     
Flag Coverage Δ
uitests ?
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quota Plugin UI issue

1 participant